package org.jeecg.util;

import java.util.ArrayList;
import java.util.List;

public class ProtocolMessage {
    // AP:C层
    public byte startFlag = ProtocolConstants.AP_START_END_FLAG;
    public byte protocolType = ProtocolConstants.AP_PROTOCOL_TYPE;
    public byte transportProtocolType = ProtocolConstants.VP_PROTOCOL_TYPE;
    public byte[] data; // VP层数据
    public short crc;
    public byte endFlag = ProtocolConstants.AP_START_END_FLAG;

    // VP:A层
    public byte[] address = new byte[ProtocolConstants.VP_ADDRESS_LENGTH];
    public short packetId;
    public byte vpFlag;
    public byte cpid;
    public byte[] mcpaData;

    // MCP:A层
    public byte commandId;
    public byte ackFlag;
    public List<MonitorData> monitorDataList = new ArrayList<>();
}

